fix missing header <cmath>