Bug fix 

Reorder ifdef conditional blocks in misc/network