Cross compile support for Scala 2.11

Is there a better way to get the `major.minor` version?