define snprintf macro in cmake file for Visual Studio

cleaner now
add header files to vs project