fix CMake build on old compilers that do not support 'constexpr'