Use cmath emulation, instead of C99 math.h