Hmm i never got the io error myself. Can the .tga file be found?
Also if you know the filename/path used is correct can you give a linenumber also as the code you mentioned is used in several parts in the tga loader.
The tga loader is a bit of a quick hack.

The xspeed,yspeed is part of my basic template, but are not used in examples before example6. I better should have removed it completely. If you want to use them you need to add something like:
Code:
rotateRzRyRxMatrixf(model, 30.0*xspeed, 30.0*yspeed, 0.0); //cube can now be move by arrow keys ...
to move the cube. An complete example of that is in example 6.