clean up flags for ctest