fix build for vc2005.

Signed-off-by: Jack <jack.wgm@gmail.com>