Ported the CaptureGL to linux