Factor out ARM specific patches
Add workaround for babeltrace on ARM