Better linked list handling + missing header file