implemented a proper ELF header generator

This pull request adds the ELF header generator. It generates a file and program headers and a section header table. Sections can be simply added by filling in another section header (this may turn out to be useful for `.data` and `.bss` sections).