Fix Check GL for BSD