To make work on Linux (Ubuntu 12.04), you need the following libraries:
apt-get install freeglut3
apt-get install freeglut3-dev
apt-get install libglew1.6
apt-get install libglew1.6-dev
apt-get install libglu1-mesa
apt-get install libglu1-mesa-dev
apt-get install libgl1-mesa-glx
apt-get install libgl1-mesa-dev