Made some changes to get an iOS build working properly on the simulator.