fix macports libs detection