cpu: arm7_common: added extern C guards