Be sure to first unload the static modules

Or we get a double list free
Only make glx available when gl is available