Fix compilation for C++ lib versions without std::map::emplace()