See https://bugs.kde.org/show_bug.cgi?id=207100 where a patch is attached that does
--- ./python/krosspython/cxx/Objects.hxx.orig 2009-09-11 16:04:44.566061205 +0200
+++ ./python/krosspython/cxx/Objects.hxx 2009-09-11 16:05:08.456197727 +0200
@@ -49,6 +49,7 @@
#include <iterator>
#include <utility>
#include <typeinfo>
+#include <algorithm>
namespace Py
{
algrorithm is now included as of r314