Changed from standard c11 to gnu99