From Ulrich Hertlein, "Attached is a patch that introduces 'static_cast<unsigned int>' on some instances where
the code returns '.size()' of a std::vector.  This caused some warnings when using clang++
on OS X."
From Farshid Lashkari, "The tga image loader was not properly reading in 16-bit images. Fix is attached."