python: properly build the core in Cygwin environment for setup.py