Work around windows linking issue for file descriptor hack
Statistics: add label parameter
Hack to make work-around windows linking issue for file descriptor hack work