Use lua_tointeger() instead of lua_tonumber() as pointed out by zorbathut@ in https://github.com/brimworks/lua-zlib/pull/6