Code changes to clean implicit declarations from libc.

ok patrick@