basic linking config for macosx