Fix 32-bit LuaJIT build for Linux&OSX. Fix host tool building for iOS.