For Darwin MacPorts add the gcc/g++ libdir.
Darwin can have libfoo.0.dylib instead of libfoo.dylib.0