Add cmath headers for full C++ compatibility