fixed glibc deprecated _BSD_SOURCE