apply lua 5.1.5 patch#2

http://www.lua.org/bugs.html#5.1.5
Merge pull request #76 from DeadnightWarrior/DnW

Two more functions for LUA math module
Update LuaMathExtra.cpp

fix compile
fix #3720 and #4043
SpringTime: switch to native win32 clock (used by SDL) on windows
typo