Issue #11121: Fix building with --enable-shared.
3 files changed