b2b_entities: fix proxy authentication
 - credits goes to shimaore (sourceforge id)
 - closes patch 3587231
- fixed the calculation of the global average by the _bm_log_timer function.
  Credits go to David Sanders
  Closes patch  #3555236.