Modern implementation of classic BSD's sys/queue.h