Fix name lookup with a class/namespace prefix