modify to compile ok on vs2013 sp1 w/ .net 4.0