fix compile error in two projects

Change-Id: I69682ecf050c2716a9ee15cca74d3b11af1aff41