Add better dependencies

This makes it possible to do parallel builds. "make -j 8" now works and
is *much* faster.