Migrate to Scala 2.10
Use suitable compiler options