added ffi to math.h