Cygwin defines uint32_t as unsigned long. Unbreak call to std::min in this case