Support newlib as libc++'s C library [locale part]

http://reviews.llvm.org/D5385