tdb2: use config.h instead of setting _XOPEN_SOURCE etc.