Issue 62 - Better use of automake dependency tracking

Fixes #62.