Avoid using some reprecated API
Don't use setlocale() anymore in library as it's not thread safe
Released version 5.2.2