The qgpgme source is missing 2 function declarations when built under Mac OS: for
strdup() and for strcasecmp().
The former can be addressed by invoking qstrdup() instead, which avoids setting
_DARWIN_C_SOURCE to a value which may or may not cause side-effects
The latter declaration is obtained by including strings.h.