Added gmpcompat.h for MinGW64.
Added missing static __inline__'s.