Fix extending Namespace prototype not working on IE8.

It seems IE8 is not to keen on extending prototypes in
some circumstances.