orientdb-1.6.4

I'm a bit sketchy about whether i've done the right thing with the patch (which had to be regenerated because of code changes), but it seems to work.