AddCompilerFlags: more correct checking of COMPILER_FLAGS_BUILD_TYPE