Made ast.cpp compilable in C++