Bugfix in Makefile by Piotr Jaroszyński <p dot jaroszynski at gmail dot com>
Race condition in sem fixed with setsid(). Passes unittest.