Misc fixes for scala 2.10

This is for Issue #54 to compile dispatch.