add flag -Ydependent-method-types for Scala 2.9.x
avoid warning about inferred existential type in Scala 2.10.x