Removed the main.h include from net.cpp.