Fixed some 64bit warnings because of mixing size_t and other types.