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