Add extra std headers and use fabs, fround where needed.