building libturbojpeg while installing dependencies to avoid linking problems