Fix implicit declaration warnings (include stdio.h)