made windows lib build CMake based and curl build static