Fix build.
Add ng_patch detection.