Fixed problem where CTest ignores failing builds on Unix.