gralloc: Fix some differences with compatibility code