Propagate OSX_SYSROOT to projects
Improve autopain script (attempting to build LibTurboJpeg on OS X)