Fix build for windows