Update compat.h

Adding winsock2.h to possibly fix compile issues on windows . windows.h is there as far as I know can think for definitions for timer since if I did a lean and mean flag I got errors not finding definitions.