[Build] Extract common build config to gyp-config.