Added patches to fix build issues on Windows.

Fixed a few errors in Build.sh and SDK.sh