Be more secure about pointers in event lists (win32 plugin)

Change-Id: I4be3ff3d833170df800af436cc981b28bc711053
Reviewed-on: http://review.couchbase.org/24477
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Align buffers on HP-UX systems (thanks to Yury Alioshinov)

Change-Id: I1d313cfce4126f53791de504f4240d68ba4263ae
Reviewed-on: http://review.couchbase.org/24502
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Yury Alioshinov <haster2010@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Define -D_REENTRANT to ensure errno is threadsafe

Change-Id: I127f295703b0258c934a694569c8b56b014069b5
Reviewed-on: http://review.couchbase.org/24543
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>