Change graphite flag to "ENABLE_GRAPHITE" & add some flags