Pthread, semaphore and socket stubs.

Hi. Here are some stubs for pthread.h, semaphore.h, ifaddrs.h and socket.h