Recently got a MacBook Pro and decided to check how things build on
MacOS. Discovered that POSIX unnamed semaphores weren't implemented, so
I reimplemented them with conditional variable and mutex.
Additionally, fixed scripts and CMake on MacOS
Linking against static asan library was a mistake. Now this should
work better for other compilers. Also added script for running all tests
under different profiles.