std_map: update for C++11

C++11 versions of std::map::erase uses const_iterator inputs.

This patch allows compilation of SWIG wrappers on MacOS 10.9
(with the new libc++), but will not work on non-C++11 compliant
compilers.  More work is required to make this seamless.