Use lseek64 and ltell64 to support large object greater than 2gb in size.
Modify truncate to use lo_truncate64. Use HAVE_LO64 define to use new lo_*64 methods. Check size of offset and length for versions without LO64.