Prefix all symbols with the library namespace

Untested -- better check through it quickly before merging. :-)