Don't check for WINDOW type of curses on OS X

For some reasons it can't be found.
Don't check symbols of libmagic if it's absent