Improve Lua 5.1 compatibility functions
Improve CMake support files (version detection)
Add stub win32/main.cc