Build error: undefined symbols in gcc plugins