Small fixes for windows

Windows now builds after nomis52's changes.
Actually, looking at this, on Windows don't you want .p instead, based on the comment? http://pimprenelle.lps.ens.fr/xvindoc/pthread_8h_source.html#l00566