Use Data.Fixed.mod' instead of Foreign.C.Math.modf, remove cmath dependency