package gcc: workaround for weak default functions