examples: use mraa_get_platform_name API in examples

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>