Fix calling maths functions when compiling via C