added -std=gnu99