Added compilation logic for explicit message exchange.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>