Similar to r250719: guard against MK_BMAKE not being defined.
guard against MK_SHARED_TOOLCHAIN not being defined.