Fix linux build (removed 'min' macro)