lib name and linking fixes for macosx