fix xopengl compile problem in linux