fix build with libc++ after 85c579e

Reproduced and fix verified on my macbook.