Fix declaration for ctor functions in generated headers.

Change-Id: I329ff80da68c629d7a82921253c4412563743b34