Proper fix for Cortex-M/Cortex-A RTOS issue

Created two new labels (CORTEX_A and CORTEX_M) that can be used to differentiate
between Cortex-A and Cortex-M code in the build system.