Move libraries to the end of the command, because it seems that's where they should live.