windows build: ignore generated files (nmake)
windows build: use different .def file for xp

Use different def file for windows < 5.1.
Merge pull request #1537 from bmiklautz/windowsbuild

Windows build fixes