Fix compilation for C++ lib versions without std::map::emplace()
Merge pull request #1422 from trig-ger/fix_lack_map_emplace

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