update defines for V3 and create ELF encapsulator for qImage