drake.cxx.GccToolkit: Remove useless duplicate library when linking.
drake.cxx: Don't duplicate libraries on the command line when they're sources and dependencies.