Pass LDFLAGS rather than CXXFLAGS to linker.

This changes the effects linux and NaCl builds only.
[NaCl] build_nacl.sh: Don't try to build glibc and newlib at the same time.

Also, update travis script so they can be used to build
glibc and/or ARM NaCl builds.