Fixed ISO C99 warnings from using the -pedandic flag