Platform independent system calls for Lua
