Enclose GL related stuff in the ImageBufferQt destructor inside a
ACCELERATED_2D_CANVAS if.

Fixes #2