Enable minimal build on Mac/Linux
Fix build of unit tests on Mac