Change all #ifdefs to use the new BUILD_* target macros