Scala compilation error: not found: type _$1