Fix compilation without GUI