[NaCl] Add support for building using glibc toolchain.

BUG=
R=binji@chromium.org

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