Define XOPEN_SOURCE and __EXTENSIONS__ on Solaris.