Avoid warning when compiling tests for PostgreSQL or MySQL.
Use persistent 1.3+ new limit/offset func (closes #35).

This code was actually written by @gbwey and it's being
manually merged with some changes by me.
Bump version to 1.3.5.