Graphics: Fixed compatibility issues with omnetpp 4.6.