added -std=c99 to the project settings to make it C99 compatible