Add ex*.c to .gitignore
Correct compilation and pointers