Ensure compatibility with IE 8

As mentioned in https://github.com/dcodeIO/ProtoBuf.js/issues/29.

Note that even with these changes you will still need typed-array/es5 shims for IE 8.