compilation and linking with new toolchain fixed