fixed bug that caused linker error in new vs2013