Fixed warnings

There were a handful of warnings:

Implicit declaration of function '...' is invalid in C99