libdialog has to be linked to libncursesw and libm