Fix compile errors when using simulator iPhone 5s