Fix some C99 errors