Make some Unix thread code compile
Fix the includes for UNIX Net