Fix link errors on Ubuntu 13.04

- gears/logo need MATH_LIB to find sqrtf@@GLIBC_2.2.5
- all examples need GL_LIBS