I fixed the problems.
I removed the implementation on EnterpriseDB items, because I don't havehow to test it. Can you help to test it?
I tested on Windows 7 and Ubuntu.