Changed SOIL to FreeImage as image loading library.
Fixed nasty bug in Resource.cpp.