iOS: Added -fpermissive to C++ flags.
iOS: Fix for the game becoming unresponsive after being in the background for some time.