fix compiler warnings with SMP OPT code active
more flexible offset lookup and use in accessible routines