mesa can compile with gold

as requested in #3473