switching from GNU C99 Extensions to ISOC99

I am pretty sure that I will face problems and the program will be
no more stabled but it is worth to try