compile fixes for vs2010
updates