fix x86 compile error and add network stats