Added __BSD_VISIBLE 1 to allow compiling on FreeBSD.  This includes SIGWINCH on FreeBSD.  Still compiles succesfully on OSX (Mavericks) and Ubuntu 12.04 LTS