fix pthread build under ming-w64