Rename badly named min() and max() macros as they clash with C++ headers