Static con/destruction fix

This CL fixes static con/destruction for both C and C++.

Change-Id: I6abd4bba90736e9829efc29e1dce5850c8e81772
15 files changed