added libtiff and used Boost libs, fixed compilation for C++11