Fix compile error for Scala 2.11