glsl/apps: Handle ftell errors in non-debug builds.