Replaced callback with lambdas, switched compiler temporary to g++-4.8
Back to clang. Had to remove glog as it seems not to be compatible with c++11