Fixed CMakeLists.txt (uppercase)
Added custom external interface for libjpeg
Fixed libtiff dependency (freeimage use internal header)
Fixed libRaw/libWebP/libOpenEXR: added -fPIC flag
Fixed compilation with old version of libpng