fix to lua 51 because check breaks xcode generation