use default max/min when libm is not available