Active object pattern implementation in pure C