Add threads to the link (didn't link on Windows without it)