_BSD_SOURCE is deprecated since glibc 2.20

https://sourceware.org/glibc/wiki/Release/2.20
You could define both _BSD_SOURCE and
_DEFAULT_SOURCE to be both backward and
forward compatible. However, fixing so
that we are not dependent on _BSD_SOURCE
at all is the best solution.