Add common.cpp and common.h, needed for parsing caml's output