gcc compiling linked list