Locale for Gentoo

Added support for setting locale under Gentoo