Fix win32 compilation error

Use bitcoin/bitcoin#2826 to fix a compilation error.