fix some ifdef

Change-Id: Id49663eb1b71ef683c6850962850aa0c9ed177c0