Resubmission of Tong's compiler args patch (reviews.llvm.org/D5472) with minor modifications.
This patch differs from Tong's original change in how it attempts to match option argument strings for quotation removal after parsing. The original change compared strings which could fail when more than one string matched, this version checks the string pointer returned from the parser with the original string in the argv array. This change was driven by the issue reported in Bug 21190. Ideally this would be resolved by writing a different options parser but until that happens this is a workable solution.