fix compilation without GRAPHICS