incorporate bug fixes to udp receive

To incorporate this fix:
https://github.com/freedomjs/freedom-for-chrome/pull/20