Fixed compilation errors, also added -feature -deprecation
options to build.sbt