Fixed a crash when opening invalid files, improved diagnostics dialog
Make the close button hide diagnostics dialog, further UI improvements

Do not scroll per item because the message can be very long (if oscap
spews lots of messages into stderr at once). Instead scroll per pixel to
allow user to read the long messages.