Fix for ROOT-6241.
Added a protection when the default c++ library is libc++ (as it is the case for MacOSX 10.9)