fixed static linking of libwinpthread