Fix compilation problem when debian package uses -O2 flag

Change-Id: I223eed9fb07eefda2ba6767f43c4905a54d8053d