add final changes to get agent-auth building for Windows