Force programs to rebuild when a dependency changes

This fixes #353.