configure.ac: add independent checks for boost

Do not necessarily assume that, if yaml-cpp headers are installed, then
also boost headers are installed on a system.

This may not be the case. I just noticed that on Xubuntu.

So, let's start with adding hooks for configuring boost and maybe
next I'll refine this diff a bit more.