Add missing cmath include

It seems that including cmath is not necessary with g++, but it is with clang++