configure: Fix shared library creation for OpenBSD