Get rid of _XOPEN_SOURCE

Some platforms do not provide u_long etc. if _XOPEN_SOURCE is
defined.  id_t was the only thing that required _XOPEN_SOURCE,
so simply change id_t to int.