features: bump _XOPEN_SOURCE to 600

Also addd it where it was missed. This cleanups build under lucid.
TODO: Move it to features.h header
history: fixed return value handling
it: python: simplified code