Remove some unnecessary polyfill code from pmxdr and fix some xhr spec compatibility bugs in libxdr.