e-hal: Link with pthreads library

* src/e-hal/Makefile:
Link with -lpthreads. e-shm API uses POSIX semaphores.