Fixed ctest build