[PATCH v2 01/12 6.6.y] minmax: make generic MIN() and MAX() macros available everywhere