Updated PNG, libJPEG, libCURL frameworks.
Added temporary modifications allowing compilation under Mac.
Error message reports the library location. Useful for debugging.