First attempt to fix bug #365 -nodisplay is incompatible with -DNOSECURITY=true