Use explicit dependencies to specify build order

Explicit dependencies make proper parallel builds possible.

Change-Id: I71f7d7fbee1244490dfcb040bb4145ab74d5c416
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>