Apply patches from pre-git setup.