build_wrapper: Add init_env() function

This function can be used to initialize all the variables that
we might need before starting anything.

Change-Id: I9eaee0f81781720171d6d7d8fa5f9211e8a08df6
Reviewed-by: Iikka Eklund <iikka.eklund@digia.com>