some source fixes, and support .exe extensions in final installation