Allow building with `-Werror=undef`
Allow building with `-Werror=undef`

`#if` will create an error when building with `-Werror=undef`.
The same test is done with `#ifdef` in other places in the code.
zeromq/zmqpp,zeromq/zmqpp