fix fmod for ios