build: Deps: Add flag grouping support

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>