Fix compilation warnings in sbt project