Apply capabilities.patch and idle-expunge.patch