build: configure: Fix mandatory flags bug

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