Add more deprecated function and modify template vs2012 soutions