build-sys: Fix running on macOS
Ensure modules are built as .so files so that they are found by ltdl at runtime.
Fix HAVE_COREAUDIO not being set on macOS leading to sound not working in the default configuration.
Fixes: #3808 (closed) Part-of: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/817