fixed empty BSS detection in elf compilation, fixed vram access in C API