fixed build error when compiling with microsoft VS 9.