Convert org.conman.math to run under Lua 5.1 or higher