Handle optional Boost components correctly.

If an optional component isn't found, also
empty out the *_RELEASE and *_DEBUG variables
so that dependencies are correct.