Added TARGET_IPHONE_SIMULATOR flag