Fixes clang build routine for OS X

There seem to be some issues while running `ctest`. A couple of printing tests are failing.