Fix compilation failure by missing #includes

dialog.c: In function 'dialog':
dialog.c:116:2: warning: implicit declaration of function 'setlocale' [-Wimplicit-function-declaration]
dialog.c:116:12: error: 'LC_MESSAGES' undeclared (first use in this function)