Final warnings fixes.

some old style type casts still exist.
some int vs size_ts are not right and have been suppressed.