[PATCH] trac#526 : add check for locale.h to configure.ac and include the header if is available