FreeImage.h Patch for iOS / OSX

Fix for FreeImage error when compiling on OSX for iOS (Xcode)

Problem:
"error: typedef redefinition with different types ('signed char' vs
'int32_t' (aka 'int'))
typedef signed char BOOL; "

Solution:
Use #define and #undef instead of typedef for the type definitions.

Updated for the new version of FreeType and to support the new 64bit
data structures with the define/undef.
Based on the changes @ofTheo made 3 years ago to the same file
#76
Fixed ofxTCPServer being thread-unsafe.

The accept-thread would access deleted TCPConnections if the connection
closed. When the socket closes, accept() errors (socket is no longer
valid) then writes to the deleted TCP connection.
https://github.com/openframeworks/openFrameworks/issues/1901
fixed Thread-safe-fix causing socket to be closed in thread after being accepted

After copying the new accepted socket, the temporary would destruct and
silently close the socket. The next use (eg. recv) would return NOTSOCK
and kick off the client.
Ownership from the temporary is now explicitly taken. Not the best
implementation of ownership transferral due to the artictechture of
TCPManager
Merge branch 'develop' into feature-ofParameter

Conflicts:
	scripts/dev/nightlybuilds.sh
FreeImage.h Fixes for IOS - BOOL rename to FREEIMAGE_BOOL
- Fixed arguments in case case MotionEvent.ACTION_MOVE
- Previous code was passing the wrong argument. The first argument is the pointer index, not the pointer id.
Merge pull request #1906 from falcon4ever/bugfix-Android-historical-events

Fixed onTouchMoved historical event handling
fixes a bug where ofColor::fromHsb(255,x,y) or ofFloatColor::fromHsb(1,1,1) returns white
Merge pull request #1907 from kylemcdonald/fix/max-hsb-color

fixes a bug where ofColor::fromHsb(255,x,y) or ofFloatColor::fromHsb(1,1,1) returns white
ofParameter: added more escape characters
ofGstVideoGrabber: fix compressed formats for 1.0
Merge branch 'develop' of github.com:openframeworks/openFrameworks into develop
priority events + ofEventMarkAttended + attended and priority for ofxGui
Merge branch 'develop-pullrequest' of github.com:SoylentGraham/openFrameworks into bugfix-ofxTCPServer
ofxNetwork: make copy private, copying these classes will destroy the connection
Merge pull request #1882 from thiagohersan/bugfix-svgtiny_parse_poly

remove freeing of non-allocated memory in svgtiny_parse_poly(...)
Merge pull request #1885 from thiagohersan/fix-android_example_permissions

add WRITE_EXTERNAL_STORAGE permission back in for android examples with ...
Merge pull request #1814 from thiagohersan/fix-getHex

fix getHex and setHex for ofFloatColor and ofShortColor
Merge pull request #1812 from thiagohersan/fix-glHandedness

add default values to private members of ofGLRenderer.
Merge branch 'develop' into feature-newMakefiles