fixed library setup on windows