Fix the build for windows

Problem introduced in caf6150. Thanks to @drak for noticing. Fixes #4473.