environment: made it compile with both omnet++ 4.6 and 5.x