Fix sbt build issues

Updated versions of dependent libraries and fix java.util.NoSuchElementException when building.