Some small fixes to the templates in msg queue.
More primes.cc code (still a work in progress).
Link examples into build.