Test for optional Boost / OpenCV in applications. Small changes to build with recent clang.