Revert "[unix] use _DEFAULT_SOURCE instead of _BSD_SOURCE as the latter is deprecated"

This reverts commit 2d41bf75f34e9ef74d94b425e5e1008321c8ff20.