Puting some static modifiers back (ns3 don't need to use these functions).
Defining dp_send_message as weak function, allowing ns3 to override it.
Removing the static modifier from some functions.