add the correct declaration of DoubleToCString
update CMakeLists.txt for Windows