Modified gcc flags and move links to a variable