Fixed link.c compile errors.