get this to build with postgresql-9.3 (should still work with old versions, but this needs to be checked
Fixes #105