Autotools fixes for darwin, clang.

Fix config.guess to emit correct canonical triples on Darwin.
Fix configure script which calls $CC $CXXFLAGS; this causes errors
within the script with clang if -std=c++11 or other C++ specific-flags
are set.