This prevents dynamically linking some libraries on an otherwise static exe, unless you also link winpthreads dynamically.