[nw10] mac fix
support to initialize default locale in OSX
[nw10] rebase fix on mac