Improve llvm libc++ detection

The old detection did only work if CFLAGS contained -std=c++11, since ciso646
was only included for __cplusplus > 199711.
Thanks to Koernel for the cmake part.
Merge remote-tracking branch 'github/build-bot-master' into bleeding-edge-master
2014.12.21-17.00