Fixes from webports for building untrusted pnacl toolchain
Fixes from webports for building untrusted pnacl toolchain

This change will allow the webports patch to be
removed:
https://chromium.googlesource.com/webports/+/master/ports/pnacl/nacl.patch

Review URL: https://codereview.chromium.org/1728723002

sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client