_POSIX_SOURCE

also there's a lua_setmetatable now, so no need for __metatable