Mark MIN and MAX as macros as they have side effects.