fix makefiles for toolchain