Fix -Wimplicit-function-declaration warning