fixed two implicit declaration bugs (found with -Werror)