Only use dylib on Darwin

Elsewhere, let's use the '.so' suffix as it's the one used by the other
unices.