Fix configuration issue with platforms that require libc++ (such as OS X)