fixed build error in console app