fix compile error in Scala 2.10.0
Merge pull request #161 from xuwei-k/fix-compile-error

fix compile error in Scala 2.10.0