Use "-shared" as default LDFLAGS and add override for Darwin