We could `#include <algorithm>` ourselves before any boost serialization header to work around this.