#include "RandomTimedFlowElement.h"
#include "Event.h"
What do you have in RandomTimedFlowElement.h, check all your definitions. May be some thing is messed up there. I have seen cases where some definiton that is not complete in header file will cause strange problems.
What happens if you change it to
#include "Event.h"
#include "RandomTimedFlowElement.h"