List of Issues resolved @ BC Card
1. Resolved the error wrt the dirname usage when compiled with multithreaded compiler flags (The same applies to the basename also)
The resolution provided was strdup the initial string and then apply the basename of on the new string pointer.