Fix GLCanvas init on linux