Windows-related fixes, and refuse to build with failed dependencies.