Fix the runtime error in mac

The first two commits have been included in the other pull request and not quite related to the issue. But only with those two commits, it can be built on mac.

The last commit tweaks the gyp file a little. With this modification, the exo_shell can run and also the test.js can run with node. But the page is blank, I don't know why. Also, the CHECK(base::i18n::InitializeICU()) still fails. #161