Fix ompilation problems signed/unsigned comparision.