Correct use of gmp_init()

As suggested by @Rupert-RR
Merge pull request #36 from varspool/bugfix-issue-34

Correct use of gmp_init()