Added USE_RAW flag for raw plugin
Added USE_RAW flag for raw plugin
Added raw plugin
Cleaned up flags
Fixed compilation errors