fix vs2008 backwards compatibility