Replace __USE_BSD with __USE_MISC
Created by: patrobinson
As per https://lwn.net/Articles/590381/ __USE_BSD has been replaced with __USE_MISC and deprecated. On Ubuntu Xenial systems (glibc 2..23) it appears that __USE_BSD doesn't work at all anymore.
Fixes #29 (closed)