Include `cmath` instead of `math.h` in standalone, fixes a problem with the `abs` function for double arguments