Bitcoin Support for Windows

including a few more fixes to the build system on windows.