[windows] Fix startup errors