Finally fixed tests, now should compile on both Windows and Linux; build test/ for non-gmp version and test-gmp for gmp one