Fix imports
Use explicit self
Wrap C function call in unsafe block
Merge pull request #2 from bjz/master

Various fixes to bring rparse into line with rust/master