Set up BUILD_MODE based on the configuration so the default build mode