Fix #400 Support both Scala 2.10.x and 2.11.x