Get the unittests compiling when building with cmake and the setting