Fix "llvm2ice --prefix" mangling to handle classes/namespaces.

For e.g. "llvm2ice --prefix=Foo", the mangled symbols are equivalent
to being nested inside a top-level "namespace Foo { ... }".  C-style
symbols just have "Foo" prepended like before.