added #define _BSD_SOURCE