Some work on win32 support
some source fixes, and support .exe extensions in final installation
final fixes for win32, and a new contrib script to help building it