Automatically patch the source before build.