add install target
fix gl enum usage
minor code cleanup
fix compile errors with g++ 4.9.0