Replaced libjpeg dependency on apt-get, it should be libjpeg-dev instead of libjpeg8...