fix some cffi related warnings