Add :struct so cffi doesnt complain

Merged in the latest of your commits and made new pull request.