add defs for gl link