Unset temporary variables.

Added code to undefine (unset) variables that were no longer needed in
their current scope.
Automatically add Boost compile definitions.

Added macros to automatically add Boost compile definitions to modules
that reference Boost.