Try to fix build with GraphicsMagick.