Make build compatible with Scala 2.11.