add detection for timersub() and winsock.h/winsock2.h