r22302: fix the build when no shared-library support is detected