Commented out malloc.h include and mallinfo use in meter.c
Replaced spin locks by mutexes and turned aliases into weak aliases.
Put the malloc.h include and mallinfo use back.