add sighooks for Windows CLI
nodeCount: change to ULL and avoid overflow problems, resulting in 0 in the output