fix building error when using simulator on OS X 10.9