For Linux add the _XOPEN_SOURCE in order to include the definition of some extra functions that are defined in the X/Open and POSIX standards.