Re-added locales.h header

Include locales.h header to fix 'Couldn't retrieve keysym' message