http://llvm.org/bugs/show_bug.cgi?id=16764 is causing this error. It was fixed in libc++ but it didn't get to maverikcs somehow. This is a good workaround, I guess.