Merge pull request #7 from pcwalton/language-changes

Update for language changes
Fix C FFI to use *mut pointers correctly and update code.

This was found because of unused mut warnings.
Merge pull request #9 from metajack/unused-mut

Fix C FFI to use *mut pointers correctly and update code.
Update for language changes