fix windows issues & upgrade package versions