Use an explicit #define for MAXOF/MINOF

.. instead of an inline function which isn't available on all systems