Remove obsolete random_device test
Modify CMakeFile to use STATIC instead of OBJECT libraries; now produces Xcode project files that can actually build successfully
Clean up code to satisfy clang static analyzer