Added workaround to allow OpenMP usage with STL iterators (ptr_set).