Move all the compile logic into gcc so people won't try to install newlib solo.