Making setLocale and setCacheSettings public to fix problems with < 5.4, fixues issue #108