change compile option and fixup some compile fault

Signed-off-by: Fuang.Cao <cavan.cfa@gmail.com>