Fix -Wimplicit-function-declaration warnings in shell.c