use strnicmp if strncasecmp is not available
move compRootDir declaration to header file