Make ENABLE_BUILD_OPTIMIZATIONS a CMake option so that it can be set from the command line.