Remove min/max since this is already definied in algorithm
wrap windows only headers in ifdefs