Moved Linux directives into ifdef
Use INSTALL_ERT to control shared/static library type on non-MSVC
p4#: 21478