libffi extension wrapper for PHP