add a polyfill for typed arrays, and many other compat changes
do "this.window = this"
properly send acks for incoming appmsgs
ensure packed strings are always null-terminated