Don't use pthread when on MinGW even if available
It's not supported, and native Windows threading is available for MinGW