TGF for Scala 2.10

This is based on #215 and for Scala 2.10.

@alig