Define _SVID_SOURCE to get tempnam().