Compile on Windows

Adding `#include <algorithm>` for all platforms would be harmless and likely the right solution. Unless: did you get this patch from somewhere specific? Do you know if it has been upstream'd to GEOS repo?