Add flag to allow compiling on OSX

Must define _DARWIN_C_SOURCE when compiling on OSX to get declarations for readlink(), setegid(), seteuid() etc

Works on OSX 10.9.4
didn't break the build on Linux