fix heart rate monitor for mingw