macx: static linking