Line 136 in common.c doesn't allow build in Windows. Is there a type_of_file() function for Windows available?