Fixes usage of spdlog in a project that also uses cppformat

See commit message.