Add a missing include for fabs()