ipcsemtest: Initial set of test apps for sysv sem

A small set of generic test apps to check the behavior of the sysv
sem implementation.

complexdec aims for portability, it did compile on opensolaris.

Signed-off-by: Manfred Spraul <manfred@colorfullife.com>