To fix the loop detected error, just look for the second BINDIR line in the Makefiles... BINDIR is set to something at the top of the Makefile, and C_BINDIR is set to BINDIR, and then later BINDIR is set to C_BINDIR...