Change to -std=c++11 and use nullptr to initialise pointers.