performance improvements

The function: stat has become a very poor performance on newer devkitppc
versions.