Add build.sbt

In order to use high version of Scala compiler rather than the
version provided by system.

Also fix some compile errors.