Minor changes for Mac OSX to compile without warnings and Fixing the FontConfig
problem as per Dmitry.