core: , sys: , cpu: , drivers: , examples: make headers cpp compatible

Hi, I extended the used headers inluded in `./RIOT/tests/*` and `./RIOT/examples/*` to be compatible with cpp compilers.
This addresses partly #944.