Add <cmath> to headers for portability.