Update cmake requirements

Fix WiX installer
Add an export option
Fix unit tests for those which can be easily tested
Fix libc++ issue with clang when building unit tests