Adds support for Scala 2.12

This code is run nightly in https://jenkins.scala-ide.org:8496/jenkins/job/master-2.12.0-SNAPSHOT/
I don't want to duplicate this logic.
I grouped everything in CompilerUtils.