Add Cargo.lock to the gitignore
Add #[repr(C)] attributes to squelch warnings
Remove use of deprecated [[lib]]
Merge pull request #17 from tomjakubowski/misc-fixes

Miscellaneous fixes