Add some experimental code for loading libGL.so at runtime.

The reasoning for this I was getting some strange errors in VirtualBox while hardware acceleration was enabled. This appears to fix the VirtualBox case, but testing is needed for other configurations (real hardware, AMD, etc).