build system: fix bug causing #ifndef .. #else .. #endif constructs to evaluate to nothing (i.e. neither branch taken)