From Laurens Voerman, build fix for VS.