Fixed compilation errors in queue.c