Fix Windows gdb build failure with Python 2 support