Fixed windows build

(Only tested via crosscompile)