GTG: Fixed segfault
Makefile: Added -std=c++11 and -pedantic to CFLAGS