pthread mixup
fixed libpng and libjpeg under win32