Small thresholding tweak
Fix MinGW build for dbaarda