added end flags to bootstrap and linker