Fall back to seeking by file position when seeking by PTS fails
Fix warning when building with gcc