refs #162 changed define _BSD_SOURCE to _DEFAULT_SOURCE