Moving windows compatibility files to win/, adding pthreads.h