Fixed linked libraries to be the last argument of CC command.