go/private: only enable -shared/-dynlink on selected platforms (#1696)

Signed-off-by: Steeve Morin <steeve@zen.ly>
4 files changed