Added dTHX; declaration at top of each xSUB (hopefully) clearing up a Windows problem spotted by sisyphus.