fix -Werror-implicit-function-declaration error