fix -mwindows flag