replace pylibmc with libffi