Fix linking gcc flags.