Issue #16987: Fix definition of SHLIB_EXT.
Merge 3.3.