Make dependency to Scala optional.