Incremental build for Scala programs