Fixed a few C warnings