refactor CMakeLists.txt
use boost/cstdint.hpp for windows