Replaced unimplemented occurences of emplace with insert for gcc 4.7