Just copy all files from proper version directory to unpacked bzip2 tarball or apply the patch. Then run sh ./autogen.sh to finish the autoconfiscation. Then build as any other autoconf based package.