fix implicit-function-declaration warnings