apply libpatch interface changes