fixed compiler errors in class PacketDispatcher