Fix scala 2.9.0 compile error