uninitialized variables

I basically pulled all the changes from your repo, and after that ntest t was failing in optimized mode (though, interestingly, not in debug mode). So I used valgrind to track the uninitialized variables.

Note that although our repos are more or less in sync, github seems to want to make a pull request with the last one as well. I have a feeling that the last pull request was merged in differently. Anyway, not a big deal, but that's why a simple dozen lines change shows up as 10 commits in this pull request.

You may want different defaults for COsClock ...

BTW, if you'd like to use valgrind, which should work on OS X as well, do the following:

a) get rid of -O3 -flto  in both places in the main CMakeLists.txt
b) rebuild
c) run as follows: valgrind --db-attach=yes ./ntest t