Define Cpp{Enable,Disable}Exceptions macro

Change-Id: I896851827ab0e0bd1d3f2831320d21a6092ed3a6
(cherry picked from commit 27a2b37cc413eeb6f7263b03b87a822f97d9db07)