Add X11 support to test program.

Signed-off-by: Michal Suchanek <hramrach@gmail.com>