Improve compatibility with iPhone simulator.