build: generator: Add compiler flag support

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