Fix project setting and compile warning for scala 2.10