Autotools fixes for darwin, clang.

Fix config.guess to emit correct canonical triples on Darwin.

Fix configure script where it calls ```$CC``` with  ```$CXXFLAGS``` —
This causes errors within the script when building with clang, if ```-std=c++11``` or other C++ specific-flags are set.