Fixed up some preprocessor checks.