Add ability to run make test, check and checkinstall targets.

And added make check to the gmp package, closes #23.