define _DEFAULT_SOURCE to avoid warning about _SVID_SOURCE