Ensured that posix::unnamed_semaphore#value() is a const method.
Ensured that LDFLAGS contains -pthread on Linux platforms.

This fixes "undefined reference to symbol 'sem_[*]@@GLIBC_2.2.5'"
linker errors when linking against the shared library.
Added some basic test cases for posix::unnamed_semaphore.