htmlcxx: fix compilation with libc++

Fixes #24820.