fix deprecation of _BSD_SOURCE define

_BSD_SOURCE is deprecated in newer gcc
added _DEFAULT_SOURCE to fix that