Build dependencies: support OS X + macports.