Moved glew initialisation to its own function