Avoid use of setenv

bash exports setenv and getenv; when primus' initialization is triggered in
bash before main(), a call to setenv will initialize internal environment var
table and subsequent calls to getenv will return NULL.
Report failure to open primary dpy
Improve error reporting for broken ddpy GLX