Fixed -Wundef warnings

Allows external projects that want to define -Wundef to compile, and fixes a bug in NIRadioGroupController.m that was caught with -Wundef turned on.