ctest fix for non windows platforms (ctest)