fix the update build and enable graphite opt

Signed-off-by: Hieu Phan <aznrice2k4@gmail.com>