Revert "Fix for FreeImage.h errors when building for iOS/OSX Xcode"

This reverts commit 63bcbf08c390e0863b6821cd47c0b421803504e8.
Revert "Revert "Fix to FreeImage.h for OSX and iOS for typedef problems, replaced with define/undef""

This reverts commit 80282053312586830f4908200d29cc377f840906.
Revert "UTF-16"

This reverts commit 588a8c5fa7e96617deb4fadb3cff4e6b2951646c.
Revert "LF change"

This reverts commit 52c5219a2f089449653a36a062ed95bb5536b2c2.