fix GLX_RENDER_TYPE for WINE
fix permissions