add /usr/local/lib to include_dirs. remove -ljpeg