Fixed some compile warnings in Scala 2.10