Fix the Windows build and test

Tested Lua 5.1.5 mingw/VS2013 32/64 bit