build, gyp: set flags for xcode
build, gyp: fix warnings about dollar for osx