NaCL-related build tweaks for regaltest, nacl example and pnacl.

Party based on nacports patch for Regal:
https://code.google.com/p/naclports/source/browse/trunk/src/ports/regal/nacl.patch

Tested with pepper_34, pepper_35 and pepper_36