Simple message queue implementation in C.