incluing pthreads in vbat monitor