Need MIN/MAX macros on SunOS too

This fixes the build for SunOS (Illumos)