Add -std=c99 and -pedantic and fixing problems made with this change
Partly implemented functions needed for dependency checking and debug functions