Version 3.16.0

Update the code to supper the version 3.16.0 of free image library (+MacOSX build support)