core: Move GNUisms inside #if.