Fixes STL problem in watershed.cpp