core:  Fix  build

use  Flattenable only for STE_HARDWARE

Change-Id: I00813eaa941fc236033536db35dfddeff577998d