Patch main executables.