Fix compile error with GCC 4.7

In older GCC versions such as 4.7.2 `std::map::emplace()` is missing.