Use synaptic in order to get required libraries (such as libpng, libjpeg, libgif, openexr, libboost - all of them with -dev packages!) but a further trick is needed.
In /usr/lib you need to create the following symlinks:
- libboost_thread.so -> libboost_thread.so.1.54.0
- libboost_system.so -> libboost_system.so.1.54.0