glew & fix some warnings