Allow older versions of gcc.

std::unordered_map::emplace isn't available on slightly older versions
of gcc.