[PATCH 1/2] Backport minimal compiler_attributes.h to support GCC 9