Replaced some soilGl functions for glew ones