Avoid linking problem with libturbojpeg by compiling it during installation of dependencies

When I tried to build the example I experienced a linking error.

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libturbojpeg.a(libturbojpeg_la-turbojpeg.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; 
recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libturbojpeg.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status

I think this has something to do which compiler switches the maintainers of the libturbojpeg package in the Ubuntu repository are using. 
Building libturbojpeg on your own solved this problem eventhough the -fPIC switch does not has to be set explicitly.