Fix compilation on Scala 2.11

Apparently there's now also a NameTree in the Scala compiler
which can lead to conflicts with our own NameTree.