Fixed build

When trying to use the framework within Google App Engine which uses Go 1
there appeared to be few errors, which for whatever reason I didn't get
when I tested it in a standalone Go 1.1 application. Though by all counts it
should of failed miserably, so it was probably something I did.