Replace some uses of system with rawSystem
Call gcc using rawSystem
Fix use of %flag in test basic001
Merge pull request #1701 from Melvar/weed-system

Weed out uses of `system`