Clean up LCM test exes for case of shared build.

Modified link lines. Added bool TpetraBuild. While I was at it, added the flag
ENABLE_LCM_TEST_EXES. To mirror current behavior, it defaults to ON. But for
faster building when doing dev/debugging, set it to off in your Albany configure
script.