A few changes for the exportvis branch

The exportvis branch should now build with either internal or external libltc.

This includes the change I mentioned on IRC about MinGW using the gcc visibility stuff.