Fixed console application compiler errors.