Fix a compilation error on platforms other than Windows