fixed compilation issues on Mac OS X
Update README.md
change way to check for OpenGL libraries to work on both OS X and GNU
merge