Add support for win32 programs; add dependency gen for import libraries; generate rules for copying everything into dist/*