attempt for lua 5.2 compatibility
attempt for compatibility across different lua posix versions
Merge branch 'master' into sauerbraten