Kaiduan,
Boy, it wasn't easy and I still had to make quite a few modification to the files you pointed at and to the mediaengine.h, but I finally got the minimal build compiling and even my application working with only the subset you listed above!
Thank you so much for guiding me through this process. I really hope this will get smoother over time and that we won't have to redo the patching over and over.
Still not clear why I needed to make more changes from your patch. Maybe our environments are different or we are not exactly working on the same version.
In any case, I could not have done it with your help. SO major thanks!
I am attaching my final patch for whoever wants it.
Cheers. G.
Note: You also need to disable the UTs (GYP_DEFINES=include_tests=0)