fix imlib2 and x11 warnings when opening a URL that returned an HTTP error