client: Reorder misc.h, and point to the .c