What i am saying, is that in main.c only create the folders and comment-out most of the endless while() loop apart from the sleep.
Also comment-out conf_restore() because certain settings will require file opening functions and certain string functions.
If even that does not work, the address for making directories must be wrong.