Undefine min and max macros.  Thanks for nothing MS

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>