minor: actually apply patches during compile phase