Add __cplusplus guards to headers.

Kudos to Stuart and Yoram.