Fixed issues with scala, sbt and java-1.8 in build