Disable graphite for shared libraries

ROM builds get stuck in endless loops