Replace const std::string& with Str::StringRef in some places
Fix forwarding of variadic templates
Fix some compile errors
Replace auto_ptr with unique_ptr in translation code