Remove C++ GMP interface, initialize C types directly for less memory use and speedup.