Feature/postgresql84 compatability

a fix for #33 (and several other related issues)... use old implementation when running on old PostgreSQL