Make sure MIN and MAX will never act strange

This should be a no-brainer.
These lines might leed to warnings if MIN or MAX are already defined. Better enclose each in a #ifndef block.