Work around an apparent bug in libc++ that was causing crashes on Mac..