Automatically apply patches to third-party libraries as part of your build