improve Xvfb handling when ctest is cancelled partway through
fix bug in test_pretty_print.cc / Cmakefile

The build needs to be after Python binary has been found because the Python
binary path is passed to the .cc compile through a -D flag.