windows: add missing MIN/MAX definitions on MinGW