Fix a few implicit function declarations

Makes clang a little bit happier