Reduce warnings on Windows