osx ctest fixes