test.c: Add errorf to print error and exit.
test.c: Add X11 support.