OMNeT++ INET framework compilation with GCC 4

If you get compilation errors like these:

error: cast from ‘something*’ to ‘int’ loses precision

change the (int) cast to a (long) cast in the corresponding line.