Fixed building with NaCl.
Merge remote-tracking branch 'upstream/master' into Integration
network.c:
- reset errno from failed bind() calls if the last one succeeds

DHT_bootstrap.c:
- move the perror() output next to where it belongs to