Added unsigned int comparison fixes
Added include for C libraries