Moved all C++ code to the event log library, works with all STAMP progs.

This implementation provides less performance that the one before as we
cannot inline the code hidden in the event log library now, however, we
can use the gcc compiler to compile the STAMP benchmark.