Fixes for building cainteoir-engine from 'make dist' output.