Attempt to fix some OSX issues.

- The continuous builds on travis-ci.org had some issues with git
describe.
- There were warnings about *_automoc.cpp files having no symbols.