Fix linux build

Maybe min & max are provided by the windows.h macros crap, but it fails on linux.