This fixes a regression introduced by 892b854f, which caused the Boost cache variables not to be appropriately unset if the lib dir changed.