Update makefile to use gcc.

Also added a new example which infinitely loops.