Include locale.h where needed