updated preprocessor macro checks for iOS and architecture