Added __patmos__ define for Patmos
Added support for patmos-unknown-rtems target triple to emit proper defines
Check for RTEMS target, set entry function, symbols and linked libraries depending on OS