Undefine stdlib's abs function

Add ifdef for min, max