-mthreads is only supported in MinGW