Fix compile issues vs2013