fix other compiler issue

apparently some implementations of C++ don't accept const_iterators for a
call to erase();