Use sysconfig to determine the shared library extension.