Python windows build

Add some special casing for python windows build, so that one does not have to edit the setup.cfg in case this is a git checkout build.

I also removed some rebase error markers from gitignore (in addition to adding the cygwin src\.*o) , not sure why they were there?