Fix build for windows (finally)