[BUG] Start to fix for incoming messages being grouped together.
Still need to resolve fdopen not working with nacl-g++ compiler.