use version-script only for ELF linux

version-script breaks Mac build. According to the ld man page, the version-script only applies to ELF, so I assume it's safe to use the OS_LINUX macro