Fixed warnings in scala 2.10 branch.