Added Windows threading to remove os dependence. Added automation to build dependencies for Windows.