[GeoLib] createPolygonTrees(): Fix C++11 issue.

std::list::erase pre C++11 implementation does not take a const iterator. This commit can be reverted if Travis uses a newer version of gcc.