bpo-34814: Fix Modules/makesetup for shared libraries
Fix Modules/makesetup script for shared libraries. When Modules/Setup
is modified to compile C extensions as shared libraries using
Makefile, make sure that the generated shared library is linked to
Add also a dependency on the Makefile target to libpython, to make
sure that the parallel compilation works as expected.