add changes for macports based systems