threads: Check w32threads dependencies at the configure stage