bb-imager: Make config support optional
Not using config in CLI rn, so make it optional. Allows making serde and
related crates optional as well.
Macos support currently needs serde, so cannot remove it.
Signed-off-by:
Ayush Singh <ayush@beagleboard.org>