Fix build errors for gralloc