Revamped patch/build system.