Error handling in backtrack.c, better makefile