fix Scala 2.9 compile