Define isValidModule to header 'elf.h'.
Optimize exec operation slightly.
Fix init arguments.