Mac support, removed unneeded libjpeg link dependency