Use std macros for int min/max