Fix build failure on GCC 4.7 (old libstdc++ doesn't have std::map::emplace).