Fixed -std=gnu99 errors