Fixed the linker errors in PacketFactory.cpp.