Update to new rust syntax.

`pub extern' is now obsolete. The `pub' modifier must be specified for each individual items.
as_c_str is now a method.
Merge pull request #12 from sebcrozet/master

Update to new rust syntax.