fix all implicit function declaration warnings