windows build fixes, 3 methods deprecated