fix building without optimizations.

Signed-off-by: lucky <lekatahanas@gmail.com>