fix compilation for vs2008