Move from SIGEV_THREAD timer handling to SIGEV_SIGNAL
Removed duplicated includes
making way for OpenBSD support
added sndio support
major changes to support OpenBSD