some fixes around debug version of Python 3 on Windows