Changed -std=c99 to -std=gnu99