Update the optional flags to use 'OPTIONAL_CFLAGS' instead of evaluating everytime. They are now blacklisted by architecture/toolchain according to the current docker reference image.