libtool: fix universal build

Fixes #33893.
Closes #33911.