Recognize _XOPEN_SOURCE == 500 and set __USE_UNIX98.