Fix Apple clang & libc++ issues.