fix new clang error about NSRunCriticalAlertPanel being deprecated

now uses NSAlert