Medvedev: gas compromise with Ukraine possible