Added definition _DARWIN_C_SOURCE to ensure SIGWINCH is defined on OSX systems when compiling