builder: Add dependencies which automake doesn't generate correctly.

This is a further attempt, earlier commits:
commit e3ac293e869a4c69225e3d954b812e9bf21588a1
commit dfe97b352d6b398c3cb3ddb1c9984767722e514b