Update to new rust syntax.

`pub extern` is now obsolete. The `pub` modifier must be specified for each individual items.