Various fixes for Lua 5.2
Even more MXE makefile mods