Allow compiling in ROM

Change-Id: Ic8bea18d52fe51888df2254256f965f0169b29f0