Improve finding of LIBGCC.  Add libraries to link in dependency order.