build_wrapper: remove unused variable 'platform'

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