windows build should link with -mwindows