fixed basic build system and a better link.ld in bootloader