integrating diag.proto; setting downstream options in gyp