[AddCompilerFlags] fix custom BUILD_TYPE flags overwritten from global.