Build sricpt: elf2bin added to build script and function local variables declared local.