Move link flags to end of command