resolve ffi issue on travis ci