Resolve compilation error related to fabs(...)