libc++ compliance

as specified by Andrei Zaharescu <cooperz@gmail.com>.

There is a bug in libc++ that didn't get into Mavericks http://llvm.org/bugs/show_bug.cgi?id=16764 that is causing some of these errors.