Support non-group dependencies

This commit introduces support for dependencies that are not package groups,
and for arbitrary cflags and ldflags for a given dependency.