message: Detect dark mode correctly in macOS Mojave
diff: #include <openssl/pem.h>
  #include <openssl/x509.h>
  +#include <QRegExp>
  +
  #if !__has_feature(objc_arc)
  #error this file must be built with ARC support
  #endif
  @@ -57,6 +59,14 @@ inline void initializeSystemVersion() {
  osver_patch = 0;
  return;
  }
  +
  + QRegExp version_re("^([0-9]+)\\.([0-9]+)$");
  + if (version_re.indexIn(QString::fromNSString([array objectAtIndex:1])) == 0) {
  + osver_major = version_re.cap(1).toInt();
  + osver_minor = version_re.cap(2).toInt();
  + osver_patch = 0;
  + return;
  + }
  NSArray *versionArray = [[array objectAtIndex:1] componentsSeparatedByString:@"."];
  if (versionArray.count < 3) {
  osver_major = 10;
  