build, gyp: set flags for xcode

* fix warnings about dollar for osx