fixed two compile error on VS.