move snprintf.c snprintf.h and strtod.c
update CMakeLists.txt