Dynamically derive RTEMS_MAJOR, RTEMS_MINOR, RTEMS_REVISION from _RTEMS_VERSION. Add RTEMS_MAJOR, RTEMS_MINOR,RTEMS_REVISION to cpuopt.h.