support libpatch make.rb