handling for headless execution on systems not having a window system available.
prevents SWTErrors during target loading.