open-babel: fix for issue #23831

This is a backport from upstream of commit
c3abbddae78e654df9322ad1020ff79dd6332946, allowing libc++ to work with
Open-babel 2.3.2.