Fixed refactoring changes

fixed compile and glew errors