fixed compilation for vs2008