fix so it compiles in non-clipboard mode