Fix some warinigs in gui.c
Fix link.c warnings.