Fix packaging on MacOSX
Fix detection of qt4 on systems where qt5 is the default (like Archlinux)
Fix ncurses detection (on Archlinux in particular).
Rename the files of the ncurses interface.

The ncurses.h file could clash with /usr/include/ncurses.h, causing
the build to fail with an unintuitive error message.