mkdirp in C