Adding fix to luahelpers.c for windows