removed deprecated option build_dir
python pep8 compliance (makes them better readable)
don't attempt building windows files when target is not win32
remove deprecated usages