r5040: attempt to get solaris10 building by defining _XOPEN_SOURCE