POSIX::setlocale fails on system without locales (Android)
Check d_setlocale before calling POSIX::setlocale
Merge pull request #6 from dex4er/porting/no_locale

POSIX::setlocale fails on system without locales (Android)