Makefile: -D is preprocessor flag; defining _XOPEN_SOURCE=500 is enough for used functions

addresses #3