use strtod and error bit to avoid using C++11 now
add dependency in Makefile