configure: Refactor setting of feature test macro _XOPEN_SOURCE