fix the issue that jxcore platform bug on mac osx
Node will consider mac osx as darwin, but jxcore will consider this just as mac.
so we need a hack here to fix this problem.