bsps/sparc: Move flags to grlib header

This enables re-use for other BSPs
rtems: Move extern "C" in <rtems.h>

Do not cover the includes with an extern "C".
bsp/leon3: Delete unused function