Patches for Solaris/Illumos

Tested with OpenIndiana a151a9 and the current masters of libqb and corosync.
Corosync and pacemaker start without any errors.

Andreas
This practice is ugly as hell :)
I've included the equivalent in: https://github.com/beekhof/pacemaker/commit/f456fc2