move to _XOPEN_SOURCE 700
move _XOPEN_SOURCE to Makefile