Fix build on Scala 2.10.x