Add define & some fixes.
Add gl2 extention