ifdefs added to avoid compilation errors on the engine project due to the new message handling system