Only link against pthread on unix systems.