Silence a compiler warning on openbsd and fix windows build

(cherry picked from commit b55338e4)
13 jobs for silence-openbsd-warning-v9_12 in 9 minutes and 54 seconds (queued for 1 minute and 52 seconds)
Status Job ID Name Coverage
  Precheck
passed precheck:debian:sid:amd64 #32846
amd64 docker linux

00:00:14

 
  Build
passed build:centos:centos6:amd64 #32847
amd64 docker linux

00:02:43

passed build:centos:centos7:amd64 #32848
amd64 docker linux

00:02:54

passed build:debian:sid:amd64 #32849
amd64 docker linux

00:02:01

passed build:debian:sid:i386 #32850
i386 docker linux

00:02:04

 
  Test
passed systemtest:centos:centos6:amd64 #32855
amd64 docker linux

00:05:02

passed systemtest:centos:centos7:amd64 #32856
amd64 docker linux

00:04:56

passed systemtest:debian:sid:amd64 #32857
amd64 docker linux

00:05:05

passed systemtest:debian:sid:i386 #32858
i386 docker linux

00:05:10

passed unittest:centos:centos6:amd64 #32851
amd64 docker linux

00:00:53

passed unittest:centos:centos7:amd64 #32852
amd64 docker linux

00:00:52

passed unittest:debian:sid:amd64 #32853
amd64 docker linux

00:00:46

passed unittest:debian:sid:i386 #32854
i386 docker linux

00:00:46