fixed loader bug for .bss sections, cleaned up some elf loading code