Fix pause button crash

Hi
It's ioshomebrew, and I managed to fix the pause button crash and other issues when compiling for the iPhone simulator