opensolaris compat: fix compile error
when opensolaris/sys/types.h is included before stddef.h ptrdiff_t would be typedef'd twice