Do not link in qpid if TM_USE_SEAPILOT is not ON.

- TM Makefile change to not link in the seapilot wrapper library (-lwrappersq)
- Wrap some code with #ifdef TM_USE_SEAPILOT

Change-Id: I3d78ca2bf22d9dc3898984b9c6f4f917e689fdf6
Merge "Do not link in qpid if TM_USE_SEAPILOT is not ON."