Update to new rust syntax.

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

Update to new rust syntax.