Return prebuild method to apply patches