Add missing return statements.
Enable broken <cmath> function overloads only when needed.