Make libtommath work with MinGW
Don't use MVM_casptr() on non-pointers