Fix implicit declarations

I wasn't able to run the test suite for an unrelated reason so please check this for me. It should be okay.