Add a basic Makefile.PL so we can compile and run tests easily from a git checkout

Also added a version hack for the use of XSLoader in the code