Fixed missing link flags.