[LIBZMQ-543] Fix compilation errors with Clang

A few forward declarations use mismatched struct and class types. Clang won't compile this with -Werror (which is enabled by default).