build mid_safecontrol module

Change-Id: I96fa4e4f639f5d674be818ebd5094b59022a6c8b