fix more seg faults on amd64 when NO_UI is not defined